﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_order_pay")]
    [Serializable]
    public class Order_Pay : ObjectBase<Order_Pay>
    {
        public Order_Pay() { }

        public Order_Pay(Int32 pid, String payname, String paycontent, String paycode, Int32 payis, String payplugver, String pluglist, Int32 isclass, DateTime addtime)
        {
            this.pid = pid;
            this.payname = payname;
            this.paycontent = paycontent;
            this.paycode = paycode;
            this.payis = payis;
            this.payplugver = payplugver;
            this.pluglist = pluglist;
            this.isclass = isclass;
            this.addtime = addtime;
            this.insert();
        }

        [NotNull(""), Default(50), Column(Length = 11)]
        public Int32 pid { get; set; }

        [NotNull(""), Column(Length = 150)]
        public String payname { get; set; }

        [LongText, NotNull("")]
        public String paycontent { get; set; }

        [NotNull(""), Column(Length = 20)]
        public String paycode { get; set; }

        [NotNull(""), Default(0), Column(Length = 5)]
        public Int32 payis { get; set; }

        [NotNull(""), Default("1.0"), Column(Length = 20)]
        public String payplugver { get; set; }

        [LongText, NotNull("")]
        public String pluglist { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }
    }
}
